import request from '@/utils/request.js'

// 发表文章接口API
// fd 为formData格式的数据
export const pubArtAPI = fd => request.post('/my/article/add', fd)

// 获取文章列表数据API
export const getArtListAPI = obj =>
  request.get('/my/article/list', {
    params: obj
  })

// 删除文章列表数据API
export const deleteListAPI = id =>
  request.delete('/my/article/info', {
    params: { id }
  })
